package lossy;

public class ZeroCheck {
	private static int N  = 8;
	public static void main(String[] args) {
		double[][] in = new double[N][N];
		
		in = generateArray(in);
		
		in = ZeroHandler.encode(in);
		
		showArray(in);
		
		
	}
	
	public static void showArray(double[][] in){
		for(int i = 0; i < in.length; i++){
			for(int j = 0; j < in[i].length; j++){
				System.out.print((int) in[i][j] + " ");
			}
			System.out.println();
		}
		System.out.println();
	}
	
	public static double[][] generateArray(double[][] in){
		for(int i = 0; i < in.length; i++){
			for(int j = 0; j < in[i].length; j++){
				in[i][j] = (int)(Math.random()*2);
				System.out.print((int) in[i][j] + " ");
			}
			System.out.println();
		}
		System.out.println();
		return in;
	}
}
